package factory;

public class DemoTest {
    public static void main(String[] args) {
        CarFactory carFactory = new CarFactory();
        Car bmw = carFactory.getCar("BMW");
        Car benz = carFactory.getCar("BENZ");
        bmw.run();
        benz.run();
    }
}
